package com.dunqi.gpm.cangxi.home.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.dunqi.gpm.cangxi.R;
import com.dunqi.gpm.cangxi.common.base.BaseAct;
import com.dunqi.gpm.cangxi.home.constance.Constance;
import com.dunqi.gpm.cangxi.home.fragment.ProjectTrendFragment;

public class WorkTrendActivity extends BaseAct {

    private int projectId;

    @Override
    protected void refreshData(Bundle savedInstanceState) {

    }

    @Override
    protected void initUiAndListener() {
        projectId = getIntent().getIntExtra(Constance.PROJECTID, -1);
        getSupportFragmentManager().beginTransaction()
                .add(R.id.container, ProjectTrendFragment.newInstance(projectId)).commit();


    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_work_trend;
    }


    public static void start(Context context, int projectId) {
        Intent intent = new Intent(context, WorkTrendActivity.class);
        intent.putExtra(Constance.PROJECTID, projectId);
        context.startActivity(intent);
    }

}
